package com.itheima.dao;

import com.itheima.pojo.User;

import java.util.List;

public interface UserMapper {

    // 查询所有的用户

     //  select * from user
    List<User> findAllUsers();

    List<User> findAllUsers(Integer id);

    //删  delete from user where id=?;
    int deleteById(Integer id);


   //改   update user set username=?,birthday=?,sex=?,address=? where id=?
   int updateUserById(Integer id,User user);


    //增 insert into user  values(null,?,?,?,?);
    int addUser(User user);
}